﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace AutoUpdate.util
{
    class Util
    {
        public static void showErrorMessageBox(string strInfo)
        {
            MessageBox.Show("消息：" + strInfo, "提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
        }

        public static bool showAskMessageBox(string strInfo)
        {
            if (MessageBox.Show(strInfo, "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
            {
                return true;
            }
            return false;
        }
    }
}
